﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_COMMAND: BusinessObject
    {
        public int CommandID { get; set; }
        public string CommandName { get; set; }
        public bool? IsUse { get; set; }

        public SYS_COMMAND()
        {
            AddRule(new ValidateRequired("CommandName"));
        }

        public SYS_COMMAND(int commandID, string commandName, bool? isUse)
            : this()
        {
            CommandID = commandID;
            CommandName = commandName;
            IsUse = isUse;
        }
    }
}
